﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PlugNT.Cms.Model
{

    [Serializable]
    public class FieldInfo
    {
        private int _id;
        private string _tabpostfix;
        private string _title;
        private string _htmltype;
        private string _htmldepth;
        private string _defaultvalue;
        private string _bindclslist;
        private bool _isbindsub;
        private string _column;
        private string _coltype;
        private int _order;
        private int _length;

        public FieldInfo() { }
        /// <summary>
        /// id
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 表后缀名
        /// </summary>
        public string tabpostfix
        {
            set { _tabpostfix = value; }
            get { return _tabpostfix; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// html类型(dropdownlist,text,textarea,editer)
        /// </summary>
        public string htmltype
        {
            set { _htmltype = value; }
            get { return _htmltype; }
        }
        /// <summary>
        /// html元素宽和高
        /// </summary>
        public string htmldepth
        {
            set { _htmldepth = value; }
            get { return _htmldepth; }
        }
        /// <summary>
        /// 默认值（dropdownlist用“,”间隔）
        /// </summary>
        public string defaultvalue
        {
            set { _defaultvalue = value; }
            get { return _defaultvalue; }
        }
        /// <summary>
        /// 绑定网站类别列表
        /// </summary>
        public string bindclslist
        {
            set { _bindclslist = value; }
            get { return _bindclslist; }
        }
        /// <summary>
        /// 是否绑定子项
        /// </summary>
        public bool isbindsub
        {
            set { _isbindsub = value; }
            get { return _isbindsub; }
        }
        /// <summary>
        /// 字段
        /// </summary>
        public string column
        {
            set { _column = value; }
            get { return _column; }
        }
        /// <summary>
        /// 字段类型
        /// </summary>
        public string coltype
        {
            set { _coltype = value; }
            get { return _coltype; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int order
        {
            set { _order = value; }
            get { return _order; }
        }
        /// <summary>
        /// 长度(0为最大值)
        /// </summary>
        public int length
        {
            set { _length = value; }
            get { return _length; }
        }

    }
}
